package com.express.e.root.bean;

import java.util.List;
import java.util.Objects;

public class Message {
    private Integer msgCode;
    private String msgContent;
    private List dataList;

    public Integer getMsgCode() {
        return msgCode;
    }

    public void setMsgCode(Integer msgCode) {
        this.msgCode = msgCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Message)) return false;
        Message message = (Message) o;
        return Objects.equals(getMsgCode(), message.getMsgCode()) &&
                Objects.equals(getMsgContent(), message.getMsgContent()) &&
                Objects.equals(getDataList(), message.getDataList());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getMsgCode(), getMsgContent(), getDataList());
    }

    @Override
    public String toString() {
        return "Message{" +
                "msgCode=" + msgCode +
                ", msgContent='" + msgContent + '\'' +
                ", dataList=" + dataList +
                '}';
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public List getDataList() {
        return dataList;
    }

    public void setDataList(List dataList) {
        this.dataList = dataList;
    }

    public Message() {
    }

    public Message(Integer msgCode, String msgContent, List dataList) {
        this.msgCode = msgCode;
        this.msgContent = msgContent;
        this.dataList = dataList;
    }
}
